import request from '@/utils/http'
import { BaseResult } from '@/types/axios'
import { LoginParams } from './model/loginModel'

export class UserService {
  // 登录
  static loginData(params: LoginParams) {
    return request.post<BaseResult>({
      url: '/login',
      params
    })
  }
  //添加用户
  static addUserData(params: any) {
    return request.post<BaseResult>({
      url: '/user/addUser',
      params
    })
  }
  //查询用户信息
  static getUserData(params: any) {
    return request.post<BaseResult>({
      url: '/user/curr-user',
      params
    })
  }
}
